/* ==========================================================
   1. RESET & VARIABLES BASE DESIGN
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial";
}

body {
  background-color: #f9f6e5; /* Warna Cream Base */
  color: #0e1e38; /* Warna Navy Gelap */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   2. NAVBAR
   ========================================================== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 8%;
  z-index: 100;
}

.logo {
  font-family: "karethtrial";
  color: #f9f6e5;
  font-weight: normal;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

nav ul li a {
  font-family: "Flair Display";
  color: #f9f6e5;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
  color: #e6c687;
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: #fff;
}

/* ==========================================================
   3. HERO LOCK-LEFT
   ========================================================== */
.hero-detail {
  position: relative;
  padding: 14rem 8% 11rem 8%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../Aset/Batik1.jpeg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start !important;
  text-align: left !important;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0;
}

.hero-content h1 {
  font-family: "karethtrial";
  color: #f9f6e5;
  font-size: 2.85rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.breadcrumb span {
  color: #f9f6e5;
  font-weight: bold;
}

.wave-container {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-container svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 140px;
}

/* ==========================================================
   4. LAYOUT DETAIL CONTENT
   ========================================================== */
.detail-container {
  padding: 4rem 8% 6rem 8%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Gambar Utama */
.main-image-wrapper {
  width: 100%;
  margin-bottom: 2.5rem;
}

.main-motif-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Area Teks (Kunci Rata Kiri) */
.explanation-wrapper {
  text-align: left !important;
  width: 100%;
}

.info-block {
  margin-bottom: 2rem;
  text-align: left !important;
}

.info-block h3 {
  font-family: "Karethtrial";
  font-size: 1.35rem;
  color: #0e1e38;
  margin-bottom: 0.6rem;
  font-weight: normal;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.info-block p {
  font-family: "Arial";
  font-size: 0.95rem;
  line-height: 1.6;
  color: #222;
  text-align: justify;
}

/* List Ciri Visual */
.visual-list {
  list-style-type: none;
  padding-left: 0.5rem;
}

.visual-list li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1rem;
}

.visual-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #0e1e38;
}

/* ==========================================================
   5. VARIAN MOTIF BLOCK (3 KOLOM GRID)
   ========================================================== */
.variant-section {
  margin-top: 5rem;
  text-align: center;
  width: 100%;
}

.variant-title {
  font-family: "Karethtrial";
  font-size: 1.8rem;
  color: #0e1e38;
  margin-bottom: 2.5rem;
  font-weight: normal;
}

.grid-variant {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Kolom Sesuai Gambar */
  gap: 30px;
  width: 100%;
}

.card-variant {
  width: 100%;
  overflow: hidden;
}

.card-variant img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-variant:hover img {
  transform: scale(1.03);
}

/* ==========================================================
   6. FOOTER
   ========================================================== */
footer {
  position: relative;
  background-color: #0e1e38;
  color: #fff;
  padding: 160px 8% 40px 8%;
  margin-top: 4rem;
}

.wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-top svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.footer-about p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.65;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ==========================================================
   7. RESPONSIVE MEDIA QUERIES (NO SIDE JUMPING)
   ========================================================== */
@media (max-width: 992px) {
  .grid-variant {
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 5%;
    flex-direction: column; /* Mengubah logo dan menu berjejer atas-bawah agar muat di HP */
    align-items: flex-start;
    gap: 0.8rem;
  }
  .wave-top svg {
    height: 80px;
  }

  nav {
    display: block;
    width: 100%;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: flex-start; /* Menu berjejer rapi ke kiri di layar HP */
    gap: 1rem;
  }

  nav ul li a {
    font-size: 0.85rem; /* Menyesuaikan ukuran teks agar pas dengan layar handphone */
  }

  /* Menyembunyikan icon hamburger bawaan karena menu teks sudah ditampilkan langsung */
  .hamburger-icon,
  .menu-toggle {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-detail {
    padding: 10rem 6% 6rem 6%;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .grid-variant {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Berubah jadi 2 kolom di tablet/HP besar */
    gap: 15px;
  }

  .card-variant img {
    height: 220px;
  }

  .info-block p {
    text-align: left; /* Mengembalikan kenyamanan membaca di layar kecil */
  }

  .wave-container svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 160px; /* Ditinggikan sedikit agar lekukan 3 gelombang terlihat tegas */
  }
  .wave-top svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 140px; /* Disesuaikan agar alur lengkungan bawah terlihat luwes */
  }
}

@media (max-width: 480px) {
  .wave-container svg {
    height: 65px; /* Skala terkunci rapat untuk HP layar kecil saat di-zoom */
  }
  .wave-top svg {
    height: 55px;
  }

  .wave-top svg {
    height: 55px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .grid-variant {
    grid-template-columns: 1fr; /* 1 Kolom penuh di HP portrait */
  }

  .card-variant img {
    height: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Dukungan fungsional tanpa mengubah desain visual */
[hidden] {
  display: none !important;
}

/* ==========================================================
   8. NAVIGASI ANTAR MOTIF
   Menggunakan palet dan tipografi desain asli.
   ========================================================== */
.motif-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 3.2rem 0 1rem;
}

.motif-nav-button {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 82px;
  padding: 1rem 1.25rem;
  border: 1px solid #0e1e38;
  background-color: #eadcb9;
  color: #0e1e38;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.motif-nav-button:hover,
.motif-nav-button:focus-visible {
  background-color: #d6c295;
  transform: translateY(-2px);
  outline: none;
}

.motif-nav-next {
  text-align: right;
  align-items: flex-end;
}

.motif-nav-direction {
  font-family: "Flair Display";
  font-size: 0.9rem;
}

.motif-nav-button strong {
  font-family: "Karethtrial";
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.3;
}

.motif-slide-from-right {
  animation: motif-slide-from-right 0.3s ease both;
}

.motif-slide-from-left {
  animation: motif-slide-from-left 0.3s ease both;
}

@keyframes motif-slide-from-right {
  from { opacity: 0.35; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes motif-slide-from-left {
  from { opacity: 0.35; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
  .motif-navigation {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motif-slide-from-right,
  .motif-slide-from-left {
    animation: none;
  }
}
